package com.itheima.charest;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class CharStreamDemo05 {
    public static void main(String[] args) throws IOException {
        BufferedWriter bw=new BufferedWriter(new FileWriter("ChaStream\\ab.txt"));
        bw.write(98);
        bw.write("\r\n");
        bw.write("迪丽热巴");
        bw.write("\r\n");
        char[] chars={97,98,99,100};
        bw.write(chars);
        bw.write("\r\n");
        String line="abcdefg";
        bw.write(line);
        bw.flush();
        bw.close();
    }
}
